#coding:utf8

from stack import Stack

interval = 0b0000001
origin = 0b0000000
for x in range(int("000000", 2),int("1111111",2)+1):
    stacker = Stack()
    stacker.instance([])
    count = 0
    length = len(str(bin(128+x))[3:])
    for y in str(bin(128+x))[3:]:
        if 0 == len(stacker):
            stacker.push(y)
        else:
            if stacker.getHead() == y :
                stacker.push(y)
            else:
                if "1" == stacker.getHead():
                    if len(stacker) > count:
                        count = len(stacker)
                        stacker = Stack()
                        stacker.instance([])

    if count == 0 :
        count = len(stacker)


    print str(bin(128+x))[3:]+"："+ str(count)